package cn.getech.data.development.service.impl;

import cn.getech.data.development.entity.UploadVersionAllJsonCheackLog;
import cn.getech.data.development.mapper.UploadVersionAllJsonCheackLogMapper;
import cn.getech.data.development.service.UploadVersionAllJsonCheackLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class UploadVersionAllJsonCheackLogServiceImpl extends ServiceImpl<UploadVersionAllJsonCheackLogMapper, UploadVersionAllJsonCheackLog> implements UploadVersionAllJsonCheackLogService {
    @Override
    public void updateStatusAndMsgById(Long id, Integer importStatus, String msgList) {
        UploadVersionAllJsonCheackLog uploadVersionAllJsonCheackLog = this.getById(id);
        if(null != uploadVersionAllJsonCheackLog){
            uploadVersionAllJsonCheackLog.setRestMsgList(msgList);
            uploadVersionAllJsonCheackLog.setCheackStatus(importStatus);
            this.updateById(uploadVersionAllJsonCheackLog);
        }
    }
}
